-- receive_damage_add
-- create by shuzy
-- 受到的伤害百分比增加

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    -- 每回合触发
    trigger = function(who, prop, base)
        local force = prop[3];

        -- 不能为负
        force = math.max(0, force);

        return math.modf(base * force / 1000);
    end,

    record = function(target, prop, path)
        return false;
    end
};
